<%def name="pagination(cl, pagination_required, show_all_url, page_range, ALL_VAR)" >

<form name="gotopage" method="GET" action=".">
<p class="paginator">

% if pagination_required:

<%
    from django.contrib.admin.templatetags.admin_list import paginator_number
%>

% for i in page_range:

    ${ paginator_number(cl,i) }

% endfor


% endif

${cl.result_count} 
% if cl.result_count==1:
    ${cl.opts.verbose_name}
% else:
${cl.opts.verbose_name_plural}
% endif

% if show_all_url:
&nbsp;&nbsp;<a href="${show_all_url}" class="showall">${trans('Show all')}</a>
% endif

&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Go to page <input type="text" size="4" name="p">
${cl.build_hidden_input_tags()}
% if cl.formset and cl.result_count:
<input type="submit" name="_save" class="default" value="${ trans('Save') }"/>
% endif
</p>
</form>

</%def>
